<template>
	<div class="middle_all" style="">
		<div class="middle_Basic_information_middle_second">
			<li>
				<p>纳税信用等级</p>
				<span>{{data.evaluationResult}}</span>
			</li>
			<li>
				<p>近12个月增值税纳税额合计</p><span>{{ da(data,['coreTaxFinanceIndex','totalTaxDeclareAmountRec12Mon']) }}</span>
			</li>
			<li>
				<p>纳税人资格类型</p><span>{{ da(data,['baseinfoVo','nsrzg'])}}</span>
			</li>
			<li>
				<p>近12个月应纳税额合计</p><span>{{ da(data,['coreTaxFinanceIndex','totalTaxDeclareAmountRec12Mon']) }}</span>
			</li>
			<li>
				<p>近13-24个月纳税额</p><span>{{ da(data,['coreTaxFinanceIndex','totalSjje13To24Mon']) }}</span>
			</li>

			<!-- 	<li>
				<p>近12个月销售额同比（元）</p><span>{{ da(data,['coreTaxFinanceIndex','saleAmountRec12MonTB']) }}</span>
			</li> -->

			<li>
				<p>近12个月应税销售收入合计</p><span>{{ da(data,['coreTaxFinanceIndex','totalTaxSalesAmountRec12Mon']) }}</span>
			</li>

			<li>
				<p>近1年营业收入</p><span>{{ da(data,['coreTaxFinanceIndex','businessIncomeRec1Year']) }}</span>
			</li>
			<li>
				<p>近12月税收违法次数</p><span>{{ da(data,['coreTaxFinanceIndex','inspectionTimesRec12Mon']) }}</span>
			</li>

			<li>
				<p>近1年短期借款余额</p><span>{{ da(data,['coreTaxFinanceIndex','shortTermLoanRec1Year']) }}</span>
			</li>
			<li>
				<p>近3个月纳税申报月份数（元）</p><span>{{ da(data,['coreTaxFinanceIndex','taxDeclareMonthRec3Mon']) }}</span>
			</li>
			<!-- 		<li>
				<p>近3个月增值税纳税同比</p><span>{{ da(data,['coreTaxFinanceIndex','taxDeclareMonthRec3MonTB']) }}</span>
			</li> -->
			<li>
				<p>近1年资产总计</p><span>{{ da(data,['coreTaxFinanceIndex','totalAssetsRec1Year']) }}</span>
			</li>

			<li>
				<p>近12个月所得税纳税额合计</p><span>{{ da(data,['coreTaxFinanceIndex','totalTaxIncomeAmountRec12Mon']) }}</span>
			</li>
			<li>
				<p>近12月税收违法次数</p><span>{{ da(data,['coreTaxFinanceIndex','totalTaxPayAmountRec12Mon']) }}</span>
			</li>


			<li>
				<p>近12个月实缴金额合计</p><span>{{ da(data,['coreTaxFinanceIndex','totalSjje12Mon']) }}</span>
			</li>
			<li>
				<p>近12个月滞纳金次数</p><span>{{ da(data,['coreTaxFinanceIndex','znjTimesRec12Mon']) }}</span>
			</li>
			<li>
				<p>近12个月连续零申报月数</p><span>{{ da(data,['coreTaxFinanceIndex','persistNoSales12Months']) }}</span>
			</li>
			<li>
				<p>最近一次实缴税距今月数</p><span>{{ da(data,['coreTaxFinanceIndex','lastSjjePurMonths']) }}</span>
			</li>

			<li>
				<p>近36个月最长连续零申报月数</p>
				<span>{{da(data,['coreTaxFinanceIndex','longestPersistNoSales36Months']) }}</span>
			</li>

			<!-- 		<li>
				<p>近 6 个月销售额同比增长率</p><span>{{ da(data,['coreTaxFinanceIndex','saleAmountRec6MonTB']) }}</span>
			</li> -->

			<li>
				<p>近12个月0申报月数</p><span>{{ da(data,['coreTaxFinanceIndex','taxNoDeclareMonthRec12Mon']) }}</span>
			</li>
			<li>
				<p>首次纳税申报日期</p><span>{{ da(data,['coreTaxFinanceIndex','taxDeclareDateFirst']) }}</span>
			</li>

			<!-- 			<li>
				<p>近12个月实缴金额同比</p><span>{{ da(data,['coreTaxFinanceIndex','taxDeclareSjjeTb12m']) }}</span>
			</li> -->

			<!-- 			<li>
				<p>近12个月0申报月数</p><span>{{ da(data,['coreTaxFinanceIndex','taxPay0AmtContiCnt24m']) }}</span>
			</li> -->

			<li>
				<p>近1年固定资产</p><span>{{ da(data,['coreTaxFinanceIndex','fixedAssetsRec1Year']) }}</span>
			</li>

			<li style="width: 100%;">
				<span class="middle_Basic_information_middle_left"
					style="width: 100%; font-size: 16x; color: rgb(98, 101, 113); font-weight: bold;margin-top: 2rem;">
					财报信息
				</span>
			</li>
			<li>
				<p>资产金额（去年年报）</p><span>2322999.84</span>
			</li>
			<li>
				<p>负债率（去年年报）</p><span>99.53%</span>
			</li>
			<li>
				<p>营业利润额（去年年报）</p><span>-127899.63</span>
			</li>
			<li>
				<p>营业净利率（去年年报）</p><span>-7.03%</span>
			</li>

			<li style="width: 100%;">
				<span class="middle_Basic_information_middle_left"
					style="width: 100%; font-size: 16x; color: rgb(98, 101, 113); font-weight: bold;margin-top: 2rem;">
					滞纳金情况:无
				</span>
			</li>

			<li class="new_li">
				<span class="middle_Basic_information_middle_left"
					style="width: 100%; font-size: 13x; color: rgb(98, 101, 113); font-weight: bold;margin-top: 1rem;">
					税务处罚
				</span>
			</li>
			
			<div class="tbdiv">
				<table class="middle_Basic_information_tb" style="width: 100%;">

					<!-- Inspection -->
					<thead>
						<tr>
							<th style="width: 23%;">登记日期</th>
							<th style="width: 33%;">违法违章信息</th>
							<th style="width: 23%;">状态</th>
							<th style="width: 23%;">详细信息</th>
						</tr>
					</thead>
					<tbody>
						<tr v-if="data.Inspection" v-for="(i_,i) of data.Inspection" :class="i%2?'odd':''">
							<td>{{i_.start_at}}</td>
							<td>{{i_.sdmc}}</td>
							<td>{{i_.status_tax_illegal}}</td>
							<td>{{i_.illegal_fact}}</td>
						</tr>
						<tr>
							<td colspan="4">无</td>
						</tr>
					</tbody>
				</table>
			</div>
			<!-- <div class="tip">
				税务逾期记录可自行前往电子税务局-税务数字账户-账户查询-违法违章信息查询中将状态选为全部，即可查到对应记录。
				<button class="view-detail-button">查看详细路径</button>
			</div> -->
		</div>
		
		<li class="new_li">
			<span class="middle_Basic_information_middle_left"
				style="width: 100%; font-size: 13px; color: rgb(98, 101, 113); font-weight: bold;margin-top: 1rem;">
				近三年纳税信息完税表(元)
			</span>
		</li>
		
		<div>
			<div class="middle_all_divtb3">
				<table class="middle_all_3_tb">
		<!-- 			<thead>
						<tr class="odd">
							<th style="width: 15rem;">月份</th>
							<th style="width: 15rem;">第一年</th>
							<th style="width: 15rem;">第二年</th>
							<th style="width: 15rem;">第三年</th>
						</tr>
					</thead> -->
					<tbody>
						<tr v-for="(i_,i) of data.taxDeclareSjjeByYear" :class="i%2?'':'odd'">
							<td style="width: 15rem;">{{i_.time}}</td>
							<td style="width: 15rem;">{{i_.fm}}</td>
							<td style="width: 15rem;">{{i_.sm}}</td>
							<td style="width: 15rem;">{{i_.tm}}</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		
	</div>
</template>

<script>
	export default {
		name: "com-nsxx",
		props: {
			data: {
				required: true,
				type: Object
			}
		},
		data() {
			return {

			};
		},
		created() {
			console.log('jcxx', this.data)
		},
		methods: {
			da(data, keys) {
				let i = 0
				while (i < keys.length) {
					if (data[keys[i]] == undefined) {
						return ''
					} else {
						data = data[keys[i]]
						i++
					}
				}
				return data == '' ? '' : data
			}
		}
	}
</script>

<style>
	@import url('@/static/scss/app.76424ad10ca5074daf35c206f425a749.css');
</style>